<ion-header-bar class="index_head">
    <button class="button button-icon icon ion-android-arrow-back" ng-click="$ionicGoBack()" style="color: #fff"></button>
    <div class="h1 title"> 浏览记录</div>
</ion-header-bar>
<ion-view title="浏览记录">
  <ion-content style="padding-top: 10px" class="has-footer">
    <div class="white-bg">
      <div class="myself-head client-header" style="height: auto;padding-bottom: 6px;border-bottom: 1px #eee solid">
        <div class="row" style="padding: 0 10px">
          <div style="width: 60px">
            <div class="myself-photo" style="margin: 0 auto">
              <img src="img/h.png" ng-if="!userInfo.photo">
              <img ng-src="{{userInfo.photo}}?x-oss-process=image/resize,w_750" ng-if="userInfo.photo">
            </div>
          </div>
          <div class="col col-80">
            <div class="list">
              <div class="ng-binding">{{userInfo.nickName}}</div>
              <div style="color: #999" ng-if="userInfo.weixinAppid">来源：微信</div>
            </div>
          </div>
        </div>
      </div>
      <div class="visitor-detail">
        <div class="vlist clearfix" ng-repeat="v in list">
          <div class="float-right nowrap-cutout text-right" style="width: 125px">
            <div class="time">{{v.createDate}}</div>
          </div>
          <div class="nowrap-cutout" style="margin-right: 125px">
            <div class="content" style="padding-left: 0">
              <span class="visitor-icon visitor-type{{v.type}}">{{v.type | visitorType}}</span> 
              {{v.name}}
            </div>
          </div>

        </div>
      </div>
    </div>
    <ion-infinite-scroll ng-if="pager.hasNaxtPage" on-infinite="loadMore()" distance="10%"></ion-infinite-scroll>
  </ion-content>
  <div class="w4-xtzgDe-bottom"  ng-click="goioschat(userInfo.clientUserId?userInfo.clientUserId:weixinAppid,userInfo.nickName)" >
    <button style="margin: 0;background: #fb7e23;color: #fff;" class="button button-block">沟通</button>
  </div>
  <div class="w4-xtzgDe-bottom" ng-if='ISWEB' ui-sref="shopChat({tid:userInfo.clientUserId?userInfo.clientUserId:weixinAppid})">
      <button style="margin: 0;background: #fb7e23;color: #fff;" class="button button-block">沟通</button>
  </div>
</ion-view>


